//
//  YMBaseViewController.h
//  PCR
//
//  Created by shumei on 16/6/3.
//  Copyright © 2016年 shumei. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void (^LeftBlock)(void);

typedef void (^topBlock)(UIButton *sendBtn);

typedef void (^RightBlock)(UIButton *sendBtn);


@interface YMBaseViewController : UIViewController

@property (nonatomic, copy) void(^sendBtnClick) (UIButton *sendBtn);

@property (nonatomic, copy) LeftBlock  LeftButtonAction;

@property (nonatomic, copy) topBlock   topButtonAction;

@property (nonatomic, copy) RightBlock RightButtonAction;

//设置导航栏标题
- (void) setTopTitleWithTitle:(NSString *)title;

//设置导航栏中间的按钮
-(void)setTopTitleWithTitle:(NSString *)title
                    OrImage:(NSString *)imageName;

//设置导航栏左边的按钮
- (void) setLeftItemWithTitle:(NSString *)title
                      OrImage:(NSString *)imageName;

//设置导航栏右边的按钮
- (void) setRightItemsWithTitles:(NSArray *)titles
                        OrImages:(NSArray *)images;

//导航栏左边按钮的点击事件回调
- (void)actionWithBlocksLeftButtonHandler:(void (^)(void))LeftHandler;

//导航栏中间按钮的点击事件回调
-(void)actionWithBlocksTopButtonHandler:(void(^)(UIButton *sendBtn))TopHandler;

//导航栏右边按钮的点击事件回调
- (void)actionWithBlocksRightButtonHandler:(void (^)(UIButton *sendBtn))RightHandler;

@end
